﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mobile/MobileAdmin.master" AutoEventWireup="true" CodeFile="career-interest.aspx.cs" Inherits="mobile_career_interest" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div data-role="content">
        <asp:HiddenField ID="UniID" runat="server" />
        <h3>Career Interest</h3>
        <asp:Chart ID="Chart4" runat="server" DataSourceID="CareerInterestSqlDataSource" Height="600px" 
              Width="600px">
              <Series>
                  <asp:Series ChartType="Bar" Name="Series1" XValueMember="career_interest" YValueMembers="Column1">
                  </asp:Series>
              </Series>
              <ChartAreas>
                  <asp:ChartArea Name="ChartArea1">
                  </asp:ChartArea>
              </ChartAreas>
          </asp:Chart>
          <asp:SqlDataSource ID="CareerInterestSqlDataSource" runat="server" 
              ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
              SelectCommand="select count(*),career_interest from members where university_id=@uni group by career_interest">
              <SelectParameters>
                  <asp:ControlParameter ControlID="UniID" Name="uni" PropertyName="Value" />
              </SelectParameters>
          </asp:SqlDataSource>
    </div>
</asp:Content>

